import http from "@/service/request";
import type { params } from "../type";

enum API {
  // 根据搜索内容查找底下的商品
  SEARCH_PRODUCT = "/api/shop/goodsSearch",
}

export function api_search_product(params: params) {
  return http({
    method: "get",
    url: API.SEARCH_PRODUCT,
    params,
  });
}
